package com.waitingresult.demo;

import com.waitingresult.demo.enums.BaseEnum;
import com.waitingresult.demo.enums.SexEnums;

import java.lang.reflect.Method;

/**
 * @Author: WangShuai
 * @CreateTime: 2023/5/18  14:08
 * @Description:
 * @Version: 1.0
 */
public class Main {

    public static void main(String[] args) throws Exception{
//        Class<?> sexEnums = Class.forName("com.waitingresult.demo.enums.SexEnums");
//        Object[] enumConstants = sexEnums.getEnumConstants();
//        Method method = sexEnums.getMethod("getValue");
//        Object invoke = method.invoke(sexEnums);
//        System.err.println(invoke);
       // Class<?> aClass = Class.forName("com.waitingresult.demo.enums.SexEnums");
        BaseEnum man = SexEnums.MAN;
        String desc = man.getDesc();
        System.err.println(desc);
    }
}
